home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
ada
/
c01oop.zip
/
CPPWKBK
/
CPPV2-2.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-25
|
458b
|
27 lines
#define HEADER "C++ Problem 2.2 by Rick Conn using Borland C++"
#include <stdio.h>
class simple {
public:
simple(); // constructor
~simple(); // destructor
};
simple::simple() {
printf("Constructor invoked for object at address %p\n", this);
}
simple::~simple() {
printf("Destructor invoked for object at address %p\n", this);
}
void main(void)
{
printf("%s\n", HEADER);
simple a, b, c;
simple d;
simple e;
}